package tichu_project252.View.Center;

import javax.swing.JButton;
import tichu_project252.Controller.grandTichuHandler;
import tichu_project252.Model.Model;

/**
 * This class implements the event handler of grand tichu button.
 *
 * This action listener is implemented to define what should be done when a user
 * push the grand tichu button.
 *
 * @see <a
 * href="http://docs.oracle.com/javase/tutorial/uiswing/events/actionlistener.html">actionListener</a>
 *
 * @author Alexandra Barka, ΑΜ: 2867, login : barka.
 * @version %I%, %G%
 */
public class GrandTichuButton extends JButton {
    
    /**
     * Constructs a grand tichu button.
     *
     * <p><b>Constructor: </b> GrandTichuButton(Model m)  </p>
     *
     * <p><b>Precondition: </b> </p> <p><b>Postcondition: </b> Constructs a new
     * JButton </p>
     *
     * @param m The model
     *
     */
    public GrandTichuButton(Model m) {
        super("<html>" + "Grand" + "<br>" + "Tichu"+ "</html>");
        this.addActionListener(new grandTichuHandler(m));
    }
}
